package com.zhoug.common3.share;

/**
 * 微信等客服端分享信息
 * @Author: 35574
 * @Date: 2022/6/23
 * @Description:
 */
class ClientInfo {
     private String packageName;
     private String shareClassName;

    private ClientInfo(String packageName, String shareClassName) {
        this.packageName = packageName;
        this.shareClassName = shareClassName;
    }

    public String getPackageName() {
        return packageName;
    }

    public String getShareClassName() {
        return shareClassName;
    }

    public static ClientInfo getClientInfo(ClientType clientType){
        return switch (clientType) {
            case Wechat -> new ClientInfo("com.tencent.mm", "com.tencent.mm.ui.tools.ShareImgUI");
            case WechatMoments ->
                    new ClientInfo("com.tencent.mm", "com.tencent.mm.ui.tools.ShareToTimeLineUI");
            case QQ ->
                    new ClientInfo("com.tencent.mobileqq", "com.tencent.mobileqq.activity.JumpActivity");
            case QZone ->
                    new ClientInfo("com.qzone", "com.qzonex.module.operation.ui.QZonePublishMoodActivity");
            case SinaWeibo ->
                    new ClientInfo("com.sina.weibo", "com.sina.weibo.composerinde.ComposerDispatchActivity");
            default -> null;
        };
    }

}
